{
    /* <form>
      <label for="username">Username:</label>
      <input id="username" name="username">

      <label for="password">Password:</label>
      <input id="password" name="password" type="password">
      <span id="password-message" style="display: none">Caps Lock is on</span>
    </form> */
}
const el = document.getElementById('password');
const msg = document.getElementById('password-message');

el.addEventListener('keyup', e => {
    msg.style = e.getModifierState('CapsLock') ?
        'display: block' :
        'display: none';
});